package com.banach.prema.repository.dataobject;

import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

/**
 * @author ajun
 * 
 */
@TableName("bnh_group")
public class GroupDO {
	private String id;
	private String operatorAccount;//发起创建群组请求的操作者 Identifier
	private String  ownerAccount;//请求创建的群的群主 Identifier
	private String type;//请求创建的 群组形态介绍，例如 Private，Public 和 ChatRoom
	private String name;//	请求创建的群组的名称
	private String notice;
	private String intro;
	private String memberList;//Array请求创建的群组的初始化成员列表
	private String code;//成员校验码
	private Date createTime = new Date();
	private Date lastActiveTime = new Date();
	private Boolean valid = true;//false为已经解散



	public String getId() {
		return id;
	}

	public GroupDO setId(String id) {
		this.id = id;
		return this;
	}

	public String getOperatorAccount() {
		return operatorAccount;
	}

	public GroupDO setOperatorAccount(String operatorAccount) {
		this.operatorAccount = operatorAccount;
		return this;
	}

	public String getOwnerAccount() {
		return ownerAccount;
	}

	public GroupDO setOwnerAccount(String ownerAccount) {
		this.ownerAccount = ownerAccount;
		return this;
	}

	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getMemberList() {
		return memberList;
	}
	public void setMemberList(String memberList) {
		this.memberList = memberList;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Date getLastActiveTime() {
		return lastActiveTime;
	}
	public void setLastActiveTime(Date lastActiveTime) {
		this.lastActiveTime = lastActiveTime;
	}
	public Boolean getValid() {
		return valid;
	}
	public void setValid(Boolean valid) {
		this.valid = valid;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getNotice() {
		return notice;
	}
	public void setNotice(String notice) {
		this.notice = notice;
	}
	public String getIntro() {
		return intro;
	}
	public void setIntro(String intro) {
		this.intro = intro;
	}
	
}
